package com.haoxi.subdsmp;

import java.util.Calendar;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class SubDSMPTimer
{
    protected final static Log log = LogFactory.getLog ( SubDSMPTimer.class );
    
    public void action()
    {
        java.util.Timer timer = new java.util.Timer();
        Calendar currentTime = Calendar.getInstance();
        currentTime.add(Calendar.MINUTE, 1);
        log.debug("begin to subdsmp !!!!!!");
        timer.schedule(new SubDSMP(), currentTime.getTime(), 1000 * 30);
    }

    public static void main(String args[])
    {
        new SubDSMPTimer().action();
    }
}